package com.softlab.retailwholesalesystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.softlab.retailwholesalesystem.entity.MenuEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MenuMapper extends BaseMapper<MenuEntity> {

    /**
     * 根据权限返回菜单
     * @param list
     * @return
     */
    List<MenuEntity> getMenuByAuthority(List<Integer> list);

    List<MenuEntity> getAllMenu();
}
